<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<c:set var="path" value="..${ctx}/common"/>

<form id="pagerForm" method="post" action="${path}/paging.html?tableName=bs_user&jsp=base/power/user/list">
	<input type="hidden" name="pageNum" value="${page.currentPage}" />
	<input type="hidden" name="numPerPage" value="${page.pageSize}" />
</form>

<div class="pageContent" >
	<div class="pageHeader">
		<form id="bs_country_list" onsubmit="return navTabSearch(this);" action="${path}/search.html?tableName=BS_COUNTRY&tableAction=list&jsp=ship/base/country_list" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>标准代码：</td>
					<td>
						<input type="text" name="COUNTRY_ID" value="${COUNTRY_ID}" />
						<!-- <input type="hidden" name="COUNTRY_ID_link" value="like" /> -->
					</td>
					<td>中文名称：</td>
					<td>
						<input type="text" name="COUNTRY_CN" value="${COUNTRY_CN}" />
						<input type="hidden" name="COUNTRY_CN_link" value="like" />
					</td>
					<td>英文名称：</td>
					<td>
						<input type="text" name="COUNTRY_EN" value="${COUNTRY_EN}" />
						<input type="hidden" name="COUNTRY_EN_link" value="like" />
					</td>
					<td>使用状态：</td>
					<td>
						<label><input type="checkbox" name="STATE" value="1" <c:if test="${STATE==1}">checked</c:if> />启用</label>
					</td>
					<td>
						<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					</td>
				</tr>
			</table>
		</div>
		</form>
	</div>

	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${path}/view.html?jsp=ship/base/country_edit" target="dialog" rel="ship_base_country" mask="true" title="添加国家信息" width="420" height="360"><span>添加</span></a><br /><br /></li>
			<li class="line">line</li>
			<li><a class="edit" href="${path}/search.html?tableName=BS_COUNTRY&tableAction=load&jsp=ship/base/country_edit&COUNTRY_ID={id}" target="dialog" rel="ship_base_country" mask="true" title="修改国家信息" width="420" height="360"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="${path}/update.html?tableName=BS_COUNTRY&tableAction=delete&COUNTRY_ID={id}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="110">
		<thead>
			<tr>
				<th width="80">标准代码</th>
				<th width="80">中文名称</th>
				<th width="80">英文名称</th>
				<th width="80">海事编码</th>
				<th width="80">海关编码</th>
				<th width="80">使用状态</th>
			</tr>

		</thead>
			<tbody>
			<c:if test="${!empty list }">
			<c:forEach var="vo" items="${list}">
			<tr target="id" rel="${vo.COUNTRY_ID}">
				<td>${vo.COUNTRY_ID}</td>
				<td>${vo.COUNTRY_CN}</td>
				<td>${vo.COUNTRY_EN}</td>
				<td>${vo.MSA_CODE}</td>
				<td>${vo.CUS_CODE}</td>
				<td>
				<c:choose>
				<c:when test="${vo.STATE==1}">启用</c:when>
				<c:otherwise>禁用</c:otherwise>
				</c:choose>
				</td>
			</tr>
			</c:forEach>
			</c:if>
		</tbody>
	</table>
	
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10" <c:if test="${page.pageSize==10}">selected</c:if> >10</option>
				<option value="20" <c:if test="${page.pageSize==20}">selected</c:if> >20</option>
				<option value="50" <c:if test="${page.pageSize==50}">selected</c:if> >50</option>
			</select>
			<span>条，共${page.recordCount}条,共${page.pageCount}页，每页${page.pageSize}条，当前第${page.currentPage}页</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${page.recordCount}" numPerPage="${page.pageSize}" pageNumShown="4" currentPage="${page.currentPage}"></div>
	</div>

</div>
